/**
 * 
 */
package org.t2.backstage.module.recharge.model;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Id;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.Id.Strategy;
import org.gaming.service.repository.annotation.NoCache;
import org.gaming.service.service.redis.OneToManyEntity;
import org.springframework.stereotype.Repository;

/**
 * @author YY
 *
 */
@Repository
@NoCache
@Table(comment = "商品配置", dbAlias = "backdata")
public class RechargeProductCfg extends OneToManyEntity {
	@Id(strategy = Strategy.IDENTITY)
	@Column(comment = "商品ID")
	private int id;
	@Column(comment = "商品名称")
	private String name;
	@Column(comment = "商品类型")
	private String type;
	@Column(comment = "金额，单位元")
	private int price;
	@Column(name = "obtain_num", comment = "商品物品")
	private String obtainNum;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@Override
	public Long redisHashKey() {
		return (long)id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public String getObtainNum() {
		return obtainNum;
	}
	public void setObtainNum(String obtainNum) {
		this.obtainNum = obtainNum;
	}
	@Override
	public Long redisOwnerKey() {
		return 0L;
	}
}
